package org.example.admin.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.admin.entity.Comment;

import java.util.List;

@Mapper
public interface CommentMapper {

    List<Comment> selectCommentBystoreId(int storeId);

    int insertComment(@Param("content") String content,
                      @Param("storeid") int storeid,
                      @Param("userid") int userid);

    int deleteComment(int commentid);

    int updateContent(@Param("content") String content,
                      @Param("commentid") int commentid);

    Comment selectCommentById(int commentid);

    List<Comment> selectCommentAll();
}
